@extends('seller::layout.master')

@section('title', __('seller::withdraw.title'))

@section('content')
@if ($errors->has('error'))
<x-seller-alert type="danger" msg="{{ $errors->first('error') }}" class="mt-4" />
@endif

  <div id="shipping-app" class="card h-min-600">
    <div class="card-header">{{ __('seller::withdraw.title') }}</div>
    <div class="card-body">
      <form class="needs-validation" novalidate action="{{ seller_route('withdraws.store') }}"
        method="POST">
        @csrf

        <x-seller-form-input name="amount" type="number" required :title="__('seller::withdraw.withdraw_amount')" :value="old('amount', '')" />

        <x-seller::form.row>
          <button type="submit" class="btn btn-primary btn-lg mt-3">{{ __('common.submit') }}</button>
        </x-seller::form.row>
      </form>

    </div>
  </div>
@endsection